package com.yunxin.core.domain.model.popup;

/**
 * @author zero°
 * @since 2023-12-11
 */
public interface PopupRepository {

    /**
     * 保存
     * @param popup popup
     * @return boolean
     */
    boolean savePopup(Popup popup);


    /**
     * 修改
     * @param popup popup
     * @return boolean
     */
    boolean updatePopup(Popup popup);

    /**
     * 根据id查询推荐弹窗
     * @param id id
     * @return Popup
     */
    Popup getById(Long id);

    /**
     * 根据名称查询推荐弹窗
     * @param popupName popupName
     * @return Popup
     */
    Popup getByPopupName(String popupName);
}
